import {request} from '@umijs/max';
import * as API from "@/services";


/**
 * 获取后端定义的所有枚举组
 */
export async function queryBackendEnums(enumTypeNames?: string, opts?: API.AxiosRequestOpts) {
    return request<API.RespListResult<API.BackendEnum>>('/api/v1/enums', {
        method: 'GET',
        params: {
            enumTypeNames
        },
        ...(opts || {}),
    });
}
